package cn.tedu.oop;
/*本类用于oop巩固练习*/
public class TestCar {
    public static void main(String[] args) {
        car c1=new car();
       c1.brand="宝马";
       c1.color="五彩斑斓的黑";
       c1.speed=100.1;
       c1.id=666;
       c1.load=4;

        car c2=new car();
        c2.brand="特斯拉";
        c2.color="黑不溜秋的白";
        c2.speed=120.5;
        c2.id=34;
        c2.load=2;

        System.out.println(c2.brand);
        System.out.println(c2.color);
        System.out.println(c2.speed);
        System.out.println(c2.id);
        System.out.println(c2.load);

        c1.start();
        c1.stop();
    }

}

class car{
    String brand;
    String color;
    double speed;
    int id;
    int load;

    public void start(){
        System.out.println("我的小车车启动了~");
    }

    public void stop(){
        System.out.println("哎呀妈呀熄火了~");
    }


}